document.ready = function(){

	$.ajaxSetup({
		url: "http://172.16.214.1/1dv449/pp222ap/position/producer/5000",
		type: "Get",
		headers: { "Accept": "application/xml"}
	});
/*
	$.ajaxSetup({
		url: "http://172.16.214.1/1dv449/pp222ap/position/producer/",
		type: "Get",
		headers: { "Accept": "application/json"}
	});

	$.ajaxSetup({
		url: "http://172.16.214.1/1dv449/pp222ap/position/producer/",
		type: "Post",
		data: {'ProducerId':'500', 'Longitude': '55.55', 'Latitude':'26.35', 'Description':'Tryggves livs'},
		headers: { "Accept": "application/json", "Content-Type": "application/x-www-form-urlencoded"}
	});

	$.ajaxSetup({
		url: "http://172.16.214.1/1dv449/pp222ap/position/producer/500",
		type: "Put",
		data: {'Longitude': '55.55', 'Latitude':'26.54', 'Description':'Test'},
		headers: { "Accept": "application/json", "Content-Type": "application/json"}
	});

	$.ajaxSetup({
		url: "http://172.16.214.1/1dv449/pp222ap/position/producer/500",
		type: "Delete",
		headers: { "Accept": "application/json"}
	});
*/	
	$.ajax({
		success: function(data){
			console.log(data);
		},
		error: function(object, error){
			console.log(error, object);
		}
	});
}